package po.car;

import java.util.Objects;

/**
 * 汽车类型
 * @author admin
 *
 */
public class CarType {
	private int typeId;
	private String typeName;
	private boolean deleteFlag; //删除标记，false没被删除
	public CarType() {
		super();
	}
	public CarType(int typeId, String typeName, boolean deleteFlag) {
		super();
		this.typeId = typeId;
		this.typeName = typeName;
		this.deleteFlag = deleteFlag;
	}
	public int getTypeId() {
		return typeId;
	}
	public void setTypeId(int typeId) {
		this.typeId = typeId;
	}
	public String getTypeName() {
		return typeName;
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	public boolean isDeleteFlag() {
		return deleteFlag;
	}
	public void setDeleteFlag(boolean deleteFlag) {
		this.deleteFlag = deleteFlag;
	}
	@Override
	public String toString() {
		return "CarType [typeId=" + typeId + ", typeName=" + typeName + ", deleteFlag=" + deleteFlag + "]";
	}
	@Override
	public int hashCode() {
		return Objects.hash(typeId);
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CarType other = (CarType) obj;
		return typeId == other.typeId;
	}
     
	

}
